/*
 * @Description: 邀请规则
 * @Author: iamsmiling
 * @Date: 2021-06-12 16:23:28
 * @LastEditTime: 2021-06-13 08:43:01
 */
import 'package:credit_business_circle/R/R.dart';
import 'package:flutter/material.dart';

class InvitationRuleCard extends StatelessWidget {
  const InvitationRuleCard({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      margin: EdgeInsets.only(top: R.dimen.dp56, bottom: R.dimen.dp26),
      padding: EdgeInsets.symmetric(horizontal: R.dimen.dp13),
      alignment: Alignment.center,
      child: Stack(
        alignment: AlignmentDirectional.center,
        // crossAxisAlignment: CrossAxisAlignment.center,
        children: [
          Container(
            width: R.dimen.width,
            padding: EdgeInsets.only(
                left: R.dimen.dp18,
                right: R.dimen.dp18,
                bottom: R.dimen.dp26,
                top: R.dimen.dp45),
            decoration: BoxDecoration(
                color: R.color.fffff9ef,
                borderRadius: BorderRadius.circular(R.dimen.sp12)),
            child: DefaultTextStyle(
              style: TextStyle(
                  fontSize: R.dimen.sp14, color: R.color.ff333333, height: 2),
              child: Column(
                crossAxisAlignment: CrossAxisAlignment.start,
                children: [
                  Text(
                    "一、规则有效期",
                    style: TextStyle(
                        fontSize: R.dimen.sp15,
                        color: R.color.ff333333,
                        fontWeight: FontWeight.w600),
                  ),
                  Text("1、 自规则发布之日起长期有效；\n2、若规则变更，将提前15日公告。"),
                  Text(
                    "二、参与方式",
                    style: TextStyle(
                        fontSize: R.dimen.sp15,
                        color: R.color.ff333333,
                        fontWeight: FontWeight.w600),
                  ),
                  Text("通过“邀好友赚奖励”活动邀请好友注册陆金所。"),
                  Text(
                    "三、邀请奖励计入规则",
                    style: TextStyle(
                        fontSize: R.dimen.sp15,
                        color: R.color.ff333333,
                        fontWeight: FontWeight.w600),
                  ),
                  Text(
                      "1、单个被邀好友的邀请奖励按3次结算发放，结算分别在首投后第31天，第61天，第91天发放至邀请人在陆金所的账户余额；\n2、单个被邀好友的每个结算日发放金额=该好友结算日前30天每日持有的金额之和*结算日前一天的邀请奖励系数/365\n3、其他未尽事宜，请在信商圈app“我的-客服中心-在线留言”，进行咨询")
                ],
              ),
            ),
          ),
          Positioned(
              top: 0,
              child: Transform.translate(
                offset: Offset(0, -R.dimen.dp16),
                child: Stack(
                  alignment: AlignmentDirectional.center,
                  children: [
                    Image.asset(R.image.invitationHook),
                    Text(
                      "规则说明",
                      style: TextStyle(
                          fontSize: R.dimen.sp20,
                          color: R.color.ffffffff,
                          fontWeight: FontWeight.w600),
                    )
                  ],
                ),
              )),
        ],
      ),
    );
  }
}
